package com.shuai.user.domain.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@Validated
public class AccountLoginRequest implements Serializable {
    private static final Long serializableId = 1L;
    /**
     * 账号
     */
    @NotNull(message = "用户名不能为空")
    @Size(max = 16, message = "用户名长度不能超过16位")
    private String username;
    /**
     * 密码
     */
    @NotNull(message = "密码不能为空")
    @Size(max = 16, message = "密码长度不能超过16位")
    private String password;

    /**
     * 图形验证码
     */
    private String captcha;


    @ApiModelProperty(hidden = true)
    private String captchaCookieValue;
}
